import { PAGE_SIZE_BASE } from '@/constants/common';
import Xhr from './axios/xhr';

const getOrgEmployeesById = (pathId = '', pageIndex = 0, pageSize = 15) => Xhr.get(`/organizations/employees?pathId=${pathId}&pageIndex=${pageIndex}&pageSize=${pageSize}`);
const getOrgChildrenById = (pathId = '') => Xhr.get(`/organizations/children?pathId=${pathId}`);

const searchEmployeesByKeyword = query => Xhr.get(`/users/search?keyword=${query}`);

export {
  getOrgEmployeesById,
  getOrgChildrenById,
  searchEmployeesByKeyword,
};
